home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 4 code / Poly. in Code Resources / Virtual WDEF / Windoid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-18  |  846 b   |  35 lines  |  [TEXT/MPS ]

  1. /*
  2.     Windoid.h
  3.     
  4.     Class that implements a "windoid" floating palette type window.
  5.     
  6.     Superclass:  WindowDefinition.
  7.  */
  8.  
  9. #ifndef __WINDOID__
  10. #define __WINDOID__
  11.  
  12.  
  13. #ifndef __WINDOWDEFINITION__
  14. #include "WindowDefinition.h"
  15. #endif
  16.  
  17. class Windoid : public WindowDefinition {
  18. public:
  19.     // overridden methods.
  20.     virtual void CalcRgns();                            // compute all relevant regions.
  21.     virtual void DrawFrame();                            // draw the frame of the window.
  22.     virtual void DrawGoAwayBox();                        // draw the goaway box (toggle state).
  23.     virtual void DrawGIcon();                            // draw window's grow icon.
  24.     virtual void DrawGrowImage(Rect& growRect);            // draw grow image of window.
  25.     virtual long Hit(Point& whereHit);                    // do hit testing.
  26. private:
  27.     void CalcRects();                                    // compute "hot" rectangles.
  28. private:
  29.     Rect itsFrame;
  30.     Rect itsDragRect;
  31.     Rect itsGoAwayBox;
  32. };
  33.  
  34. #endif
  35.